import { useMainStore } from "@/stores/main.js"
import piain from "@/stores/store.js"

const store = useMainStore(piain)

window.addEventListener("resize", function () {
  let clientWidth = document.documentElement.clientWidth || document.body.clientWidth;
  if (clientWidth <= 900) {
    store.changeFoldMenuState(true)
  } else if (clientWidth > 900) {
    store.changeFoldMenuState(false)
  }
});